@import 'variable';
@import 'mixin';
.clearfix {
  @include clearfix;
}

.container {
  position: relative;
  width: 1200px;
  margin-left: auto;
  margin-right: auto;
  @extend .clearfix;
}

.checkbox,
.radio {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  cursor: pointer;
}

.checkbox {
  input[type=checkbox] {
    appearance: none;
    position: relative;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
    border: 1px solid #333;
    border-radius: 3px;
    &:after {
      content: '';
      position: absolute;
      top: 2px;
      left: 2px;
      display: block;
      width: 6px;
      height: 3px;
      border: 0 solid #333;
      transform: rotate(-45deg);
      transition: all .2s ease-in;
    }
    &:checked:after {
      border-left-width: 2px;
      border-bottom-width: 2px;
    }
  }
}

.radio {
  input[type=radio] {
    appearance: none;
    position: relative;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
    border: 1px solid #333;
    border-radius: 14px;
    &:after {
      content: '';
      position: absolute;
      top: 3px;
      left: 3px;
      width: 6px;
      height: 6px;
      border-radius: 6px;
      background-color: #333;
      transform: scale(0);
      transition: transform .2s ease-in;
    }
    &:checked:after {
      transform: scale(1);
    }
  }
}

.yb-header {
  position: relative;
  z-index: 100;
  height: 50px;
  background-color: #111514;
  transition: all .3s ease-in;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  &:hover {
    background-color: #263238;
  }
}

.navbar {
  &.pull-left {
    float: left;
  }
  &.pull-right {
    float: right;
  }
  .navbar-brand {
    float: left;
    padding: 0 15px 0 55px;
    font-size: 16px;
    line-height: 50px;
    color: #b8c7ce;
    background: url('../images/logo.png') no-repeat 15px 9px;
    &:hover {
      color: #fff;
    }
  }
  .navbar-nav {
    margin-left: 20px;
    float: left;
    >li {
      display: inline;
      &:hover {
        .dropdown-menu {
          opacity: 1;
          height: 160px;
          .dropdown-menu-inner .menu-col li {
            opacity: 1;
            transform: translate3d(0, 0, 0);
          }
        }
      }
      >a {
        display: inline-block;
        line-height: 20px;
        padding: 15px;
        color: #b8c7ce;
        &:hover {
          color: #fff;
        }
        &.register {
          color: #fff;
          background-color: #00bcd4;
          &:hover {
            color: #333;
            background-color: #fff;
          }
        }
      }
      .dropdown-menu {
        position: absolute;
        top: 50px;
        right: 0;
        left: 0;
        opacity: 0;
        height: 0;
        overflow: hidden;
        background-color: #304047;
        transition: all .3s ease-in-out;
        .dropdown-menu-inner {
          padding-top: 20px;
          padding-left: 170px;
          .menu-col {
            width: 150px;
            float: left;
            li {
              opacity: 0;
              transform: translate3d(0, -10px, 0);
              transition: all .3s cubic-bezier(0, 0, .2, 1);
              &:first-child {
                margin-bottom: 8px;
                line-height: 24px;
                font-weight: 600;
                color: #fff;
              }
              @for $i from 1 to 5 {
                &:nth-child(#{$i}) {
                  transition-delay: 0.15s + $i*0.06;
                }
              }
              a {
                font-size: 12px;
                line-height: 24px;
                color: #b8c7ce;
                &:hover {
                  color: #fff;
                }
              }
            }
          }
        }
      }
    }
  }
}

.yb-footer {
  background-color: #263238;
  a {
    font-size: 12px;
    padding: 4px 0;
    color: #b8c7ce;
    &:hover {
      color: #fff;
    }
  }
  .footer-advantage {
    background-color: lighten(#263238, 5%);
    ol {
      display: table;
      width: 100%;
      padding: 30px 0;
      li {
        display: table-cell;
        width: 16.66666667%;
        vertical-align: top;
        white-space: nowrap;
        color: #fff;
        .fa {
          vertical-align: middle;
          margin-right: 8px;
        }
      }
    }
  }
  .service-nav {
    display: flex;
    padding: 30px 0;
    .service-nav-group {
      flex: 1 1 auto;
      color: #fff;
      li {
        margin-top: 5px;
      }
    }
  }
  .footer-bottom {
    padding: 10px 0;
    color: #b8c7ce;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    .footer-law {
      float: right;
      li {
        display: inline;
        &+li:before {
          content: "|";
          margin-left: 5px;
          margin-right: 8px;
          color: darken(#b8c7ce, 5%)
        }
      }
    }
    .footer-copyright {
      float: left;
    }
  }
}

.featurette-section {
  padding-top: 80px;
  &.bg-color {
    background-color: #F7F8FA;
  }
  .featurette-section-title {
    font-weight: 600;
    text-align: center;
  }
  .lead {
    font-size: 16px;
    color: #666;
    text-align: center;
  }
}

.customerService {
  position: fixed;
  right: 0;
  bottom: 30%;
  z-index: 99;
  .customerService-wrap {
    position: relative;
    width: 44px;
    height: 128px;
    margin-right: 15px;
    text-align: center;
    line-height: 17px;
    color: #fff;
    background-color: $theme;
    &:hover {
      .customerService-outer {
        left: -127px;
        opacity: 1;
      }
    }
    .customerService-inner {
      padding: 10px 15px;
      .fa {
        margin-bottom: 8px;
      }
    }
    .customerService-outer {
      position: absolute;
      left: 0;
      bottom: 0;
      opacity: 0;
      width: 120px;
      padding-right: 8px;
      transition: all .2s linear;
      .outer-links{
        padding: 10px;
        background-color: #fff;
        border: 1px solid #ddd;
        box-shadow: 5px 6px 15px rgba(0, 0, 0, .15);
      }
      a {
        display: block;
        font-size: 12px;
        line-height: 18px;
        margin: 8px 0;
        color: #4183c4;
        &:hover {
          color: #1e70bf;
        }
      }
    }
  }
}

.button {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  transition: all .25s ease-in;
  cursor: pointer;
  &.button-block{
    box-sizing: border-box;
    display: block;
  }
  &.button-lg {
    padding: 12px 26px;
    font-size: 16px;
  }
  &.button-sm {
    padding: 4px 12px;
    font-size: 12px;
  }
  &.button-xs {
    padding: 1px 8px;
    font-size: 12px;
  }
}

.input-group {
  display: table;
  border-collapse: separate;
  margin-bottom: 10px;
  input[type=text] {
    display: table-cell;
    width: 100%;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  }
  textarea {
    display: table-cell;
    width: 100%;
    height: 150px;
    padding: 12px 15px;
    box-sizing: border-box;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  }
  .input-group-append {
    display: table-cell;
    width: 1%;
    font-size: 0;
    white-space: nowrap;
    vertical-align: top;
    .button {
      border-top-right-radius: 4px;
      border-bottom-right-radius: 4px;
    }
  }
}

.tab-content {
  .tabpanel {
    display: none;
    &.active {
      display: block;
    }
  }
}

.badge {
  display: inline-block;
  padding: .25em .4em;
  margin-left: 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 4px;
  color: #fff;
  &.badge-theme {
    background-color: $theme;
  }
  &.badge-dark {
    background-color: #666;
  }
  &.badge-red{
    background-color: #F44336;
  }
  &.badge-yellow{
    background-color: #FF9800;
  }
  &.badge-blue{
    background-color: #2196F3;
  }
}

.loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 98;
  opacity: 0;
  background-color: rgba(0, 0, 0, .25);
  .load-box {
    position: absolute;
    top: 30%;
    left: 50%;
    width: 260px;
    height: 100px;
    text-align: center;
    line-height: 100px;
    margin-left: -130px;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 2px 5px 10px rgba(0, 0, 0, .15);
    border-radius: 4px;
  }
  &.show {
    display: block;
    opacity: 1;
    animation: fadeIn .25s linear;
  }
}

@import 'keyframe';